import axios from '@/libs/apiRequest'

export const getBuildings = (data) => {
  return axios.request({
    url: '/api/maint/gc_bd',
    data: data,
    method: 'post',
    hideLoading:true
  })
}
export const getShopInfo = (data) => {
  return axios.request({
    url: '/api/maint/single_shop',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const saveShop = (data) => {
  return axios.request({
    url: '/api/maint/save_shop',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const getDevices = (data) => {
  return axios.request({
    url: '/api/maint/devices',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const bindDevice = (data) => {
  return axios.request({
    url: '/api/maint/bind_dev',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const unBindDevice = (data) => {
  return axios.request({
    url: '/api/maint/unbind_dev',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const uploadShopPicture = (data) => {
  return axios.request({
    url: "/api/maint/shop_pic",
    data: data,
    method: "post",
    hideLoading: true
  });
}
export const uploadPicture = (data) => {
  return axios.request({
    url: "/api/maint/picture",
    data: data,
    method: "post",
    hideLoading: true
  });
}

export const uploadDutyLetter = (data) => {
  return axios.request({
    url: "/api/maint/duty",
    data: data,
    method: "post",
    hideLoading: true
  });
}






